package com.itheima.homework.assignment.Test04;

public class ProductItem {
    private int productItemId; //订单项Id
    private int productItemNumber; //订单项编号
    private int productNumber; //商品编号
    private String productName; //商品名称
    private double price; //商品价格

    public ProductItem() {
    }

    public ProductItem(int productItemId, int itemNumber, int number, String name, double price) {
        this.productItemId = productItemId;
        this.productItemNumber = itemNumber;
        this.productNumber = number;
        this.productName = name;
        this.price = price;
    }

    public int getProductItemId() {
        return productItemId;
    }

    public void setProductItemId(int productItemId) {
        this.productItemId = productItemId;
    }

    public int getProductItemNumber() {
        return productItemNumber;
    }

    public void setProductItemNumber(int productItemNumber) {
        this.productItemNumber = productItemNumber;
    }

    public int getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(int productNumber) {
        this.productNumber = productNumber;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Product{" +
                "itemId=" + productItemId +
                ", itemNumber=" + productItemNumber +
                ", number=" + productNumber +
                ", name='" + productName + '\'' +
                ", price=" + price +
                '}';
    }
}
